const env = "test-k8s-azure";
/*后台访问地址*/
// const loginUrl = "https://vservice.mindray.com";
const loginUrl = "https://mindray.zealcomm.cn";

// org
const mindrayOrg = "mindray";

//表单地址
const formUrl = `https://ivcs-${env}.zealcomm.cn/form/form-submit`;

// 小程序登录页
const miniProgramLoginPage = "'/page/login/index";

/*是否使用@zco/ivcs*/
const ivcsUseNpm = false;

/**是否开启日志留痕 */
const isOpenLogs = false;

/**日志保存的服务url */
const saveLogsUrl = `https://ivcs-${env}.zealcomm.cn`;

/*上传文件最大限制*/
const maxUploadFileSize = 1024000 * 50;

/** 默认的推流参数 */
const defaultMediaOptions = {
    cameraStreamAudioConstraints: {
        deviceId: undefined,
        source: "mic",
    },
    cameraStreamVideoConstraints: {
        deviceId: undefined,
        frameRate: 15,
        resolution: {
            width: 1280,
            height: 720,
        },
        source: "camera",
    },
    cameraPublishOptions: {
        audio: [
            {
                codec: {
                    name: "opus",
                },
                maxBitrate: 64,
            },
        ],
        video: [
            {
                codec: {
                    name: "h264",
                },
                maxBitrate: 2000,
                minBitrate: 1500,
            },
            {
                codec: {
                    name: "vp8",
                },
                maxBitrate: 2000,
                minBitrate: 1500,
            },
        ],
    },
    screenStreamAudioConstraints: {
        source: "screen-cast",
    },
    screenStreamVideoConstraints: {
        frameRate: 15,
        resolution: {
            width: 1280,
            height: 720,
        },
        source: "screen-cast",
    },
    screenPublishOptions: {
        audio: [
            {
                codec: {
                    name: "opus",
                },
                maxBitrate: 64,
            },
        ],
        video: [
            {
                codec: {
                    name: "vp8",
                },
                maxBitrate: 1024,
            },
            {
                codec: {
                    name: "h264",
                },
                maxBitrate: 2000,
            },
        ],
    },
};
